[INFO] cloning repository https://github.com/FabioBrugia/bufferCircolare
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FabioBrugia/bufferCircolare" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FbufferCircolare", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FbufferCircolare'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5d12a72437ff88ec2f59f36dfde4f4817053a41f
[INFO] fixing FabioBrugia/bufferCircolare against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FbufferCircolare" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FabioBrugia/bufferCircolare
[INFO] finished tweaking git repo https://github.com/FabioBrugia/bufferCircolare
[INFO] tweaked toml for git repo https://github.com/FabioBrugia/bufferCircolare written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FabioBrugia/bufferCircolare on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FabioBrugia/bufferCircolare already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8
[INFO] running `Command { std: "docker" "start" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking BufferCircolare v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0573]: expected type, found variant `CircularBufferError::BufferFull`
[INFO] [stdout]   --> src/main.rs:26:72
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,CircularBufferError::BufferFull> {
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
[INFO] [stdout]    |
[INFO] [stdout] help: try using the variant's enum
[INFO] [stdout]    |
[INFO] [stdout] 26 -     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,CircularBufferError::BufferFull> {
[INFO] [stdout] 26 +     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,crate::CircularBufferError> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
[INFO] [stdout]   --> src/main.rs:38:31
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout]    |                               ^^^^^^^^^ only `Fn` traits may use parentheses
[INFO] [stdout]    |
[INFO] [stdout] help: use angle brackets instead
[INFO] [stdout]    |
[INFO] [stdout] 38 -     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout] 38 +     pub fn read(&mut self) -> Option<T> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Option<T>: Clone` is not satisfied
[INFO] [stdout]   --> src/main.rs:18:26
[INFO] [stdout]    |
[INFO] [stdout] 18 |             buffer: vec![None; size],
[INFO] [stdout]    |                     -----^^^^-------
[INFO] [stdout]    |                     |    |
[INFO] [stdout]    |                     |    the trait `Clone` is not implemented for `Option<T>`
[INFO] [stdout]    |                     required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = note: required for `Option<T>` to implement `Clone`
[INFO] [stdout] note: required by a bound in `std::vec::from_elem`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/vec/mod.rs:3714:0
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 18 |             buffer: vec![&None; size],
[INFO] [stdout]    |                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0573]: expected type, found variant `CircularBufferError::BufferFull`
[INFO] [stdout]   --> src/main.rs:26:72
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,CircularBufferError::BufferFull> {
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
[INFO] [stdout]    |
[INFO] [stdout] help: try using the variant's enum
[INFO] [stdout]    |
[INFO] [stdout] 26 -     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,CircularBufferError::BufferFull> {
[INFO] [stdout] 26 +     pub fn write(&mut self, item: T) -> Result<& mut CircularBuffer<T>,crate::CircularBufferError> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
[INFO] [stdout]   --> src/main.rs:38:31
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout]    |                               ^^^^^^^^^ only `Fn` traits may use parentheses
[INFO] [stdout]    |
[INFO] [stdout] help: use angle brackets instead
[INFO] [stdout]    |
[INFO] [stdout] 38 -     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout] 38 +     pub fn read(&mut self) -> Option<T> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `empty` found for mutable reference `&mut CircularBuffer<T>` in the current scope
[INFO] [stdout]   --> src/main.rs:39:17
[INFO] [stdout]    |
[INFO] [stdout] 39 |         if self.empty() {
[INFO] [stdout]    |                 ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `is_empty` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 39 |         if self.is_empty() {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Option<T>: Clone` is not satisfied
[INFO] [stdout]   --> src/main.rs:18:26
[INFO] [stdout]    |
[INFO] [stdout] 18 |             buffer: vec![None; size],
[INFO] [stdout]    |                     -----^^^^-------
[INFO] [stdout]    |                     |    |
[INFO] [stdout]    |                     |    the trait `Clone` is not implemented for `Option<T>`
[INFO] [stdout]    |                     required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = note: required for `Option<T>` to implement `Clone`
[INFO] [stdout] note: required by a bound in `std::vec::from_elem`
[INFO] [stdout]   --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/vec/mod.rs:3714:0
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 18 |             buffer: vec![&None; size],
[INFO] [stdout]    |                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl <T> CircularBuffer<T>{
[INFO] [stdout]    |       - found this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout]    |                               --------- expected `Option<T>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 44 |         item
[INFO] [stdout]    |         ^^^^ expected `Option<T>`, found type parameter `T`
[INFO] [stdout]    |
[INFO] [stdout]    = note:        expected enum `Option<T>`
[INFO] [stdout]            found type parameter `T`
[INFO] [stdout] help: try wrapping the expression in `Some`
[INFO] [stdout]    |
[INFO] [stdout] 44 |         Some(item)
[INFO] [stdout]    |         +++++    +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0214, E0277, E0308, E0573, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0214`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `empty` found for mutable reference `&mut CircularBuffer<T>` in the current scope
[INFO] [stdout]   --> src/main.rs:39:17
[INFO] [stdout]    |
[INFO] [stdout] 39 |         if self.empty() {
[INFO] [stdout]    |                 ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `is_empty` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 39 |         if self.is_empty() {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `BufferCircolare` (bin "BufferCircolare") due to 5 previous errors
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl <T> CircularBuffer<T>{
[INFO] [stdout]    |       - found this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn read(&mut self) -> Option(T) {
[INFO] [stdout]    |                               --------- expected `Option<T>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 44 |         item
[INFO] [stdout]    |         ^^^^ expected `Option<T>`, found type parameter `T`
[INFO] [stdout]    |
[INFO] [stdout]    = note:        expected enum `Option<T>`
[INFO] [stdout]            found type parameter `T`
[INFO] [stdout] help: try wrapping the expression in `Some`
[INFO] [stdout]    |
[INFO] [stdout] 44 |         Some(item)
[INFO] [stdout]    |         +++++    +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0214, E0277, E0308, E0573, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0214`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `BufferCircolare` (bin "BufferCircolare" test) due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8", kill_on_drop: false }`
[INFO] [stdout] 0fd03d8122a740d920604073640ec3f438b1e8f76bc21bcd0318994fa92f9db8
